﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string QQ = Request.HttpMethod;
            if (QQ=="POST")
            {
                string username = Request.Form["UserName"];
                string password = Request.Form[" Password"];
                Label1.Text = $"欢迎你，{username}，你的密码是：{password}";
            }
            else if (QQ=="GET")
            {
                string username1 = Request.QueryString["username"];
                string password1 = Request.QueryString["password"];
                Label1.Text = $"欢迎你，{username1}，你的密码是：{password1}";
            }
        }
    }
}